package com.google.project.client.Service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.project.shared.ProjectDTO;
import com.google.project.shared.ProjectTaskDTO;
import com.google.project.shared.SubConstructorDTO;

@RemoteServiceRelativePath("projectService")
public interface ProjectService extends RemoteService {

	ProjectDTO addProject(ProjectDTO project);

	List<ProjectDTO> getProjectList();

	void deleteProject(String id);

	void updateProject(ProjectDTO projectDTO);

	ProjectDTO getProjectById(String projectId);

	List<ProjectDTO> searchProjectList(int status, String projectName,Long startDate, Long finishDate);

	ProjectDTO getProjectObject(String projectId);

	List<SubConstructorDTO> getListSubContructor(String projectId);

	void deleteProjectList(List<ProjectDTO> list);

	List<ProjectTaskDTO> getListTask(String projectId);

	void updateProjectForClose(ProjectDTO data);
}
